package cn.itsource.pethome.base.superr;

import cn.itsource.pethome.base.domain.BaseDomain;
import cn.itsource.pethome.base.domain.BaseQuery;
import cn.itsource.pethome.base.domain.PageResult;

import java.util.List;

/**
 * 抽取mapper
 */
public interface MyBaseService<T extends BaseDomain>  {
    void insert(T t);
    void update(T t);
    void delete(Long id);
    void deleteBatch(List<Long> ids) throws Exception;
    PageResult findPage(BaseQuery query);
    List<T> findAll();
    T findOne(Long id);
}